# import requests
# '''
# 发送get请求
# '''
# conde_url = "http://47.100.175.62:3000/api/v1/topics"
# parm = {
#     'page':1,
#     'tab':'ask',
#     'limit':3
# }
# r = requests.get(url= conde_url,params=parm)
# assert r.status_code ==200
# print(r.json())
# print(r.json()['data'][0]['id'])
# assert r.json()['data'][0]['tab'] == 'ask'


#############################
# import requests
# '''
# post请求
# '''
# conde_url = 'http://47.100.175.62:3000/api/v1/topics'
# data = {
#     'accesstoken':'d8840541-12ab-4109-93e6-253d552b1405',
#     'title':'这只是一个很简单的测试而已',
#     'tab':'ask',
#     'content':'每天联系一下，无他，手熟而'
#
# }
# r = requests.post(url= conde_url,data= data)
# assert r.status_code == 200
# print(r.json())
import requests
url = 'http://47.100.175.62:3000/user/refresh_token'
header = {
    'Cookie':'connect.sid=s%3ArpopdjHu68phtwop_1bFUaj'
             'rtQqk1B4S.coCFdaaymywk%2Be%2B%2FLhEKRXH%2BTdkad'
             'IN7XTXa2M5pBWw; node_club=s%3A6182486965eb703ac7'
             'f1715a%24%24%24%24.imBjX0mieIhVZ5YDbWKJKDWcYAg90T4aRjD%2F5FeC2EU'
}
r = requests.post(url= url,headers= header)
print(r.json())